package com.usefullc.extinguisher.query;

import com.usefullc.common.enums.QueryExpressTypeEnum;
import com.usefullc.common.enums.ValidTypeEnum;
import com.usefullc.system.query.BaseQuery;
import com.usefullc.system.validator.UsefulPropertyVerify;
import com.usefullc.system.service.component.extend.UsefulQueryField;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import io.swagger.annotations.ApiParam;
import lombok.Data;
import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

/**
 * 检查标准查询实体
 * @author: 星空
 * @date: 2022-11-19
 */
@ApiModel
@Data
public class CheckStandardQuery extends BaseQuery {

//useful_auto_generate_section_start

    @UsefulQueryField()
    @UsefulPropertyVerify()
    @ApiModelProperty(notes = "父节点")
    private Long parentId;

    @UsefulQueryField()
    @UsefulPropertyVerify(minLen=2, maxLen=100)
    @ApiModelProperty(notes = "编码")
    private String code;

    @UsefulQueryField()
    @UsefulPropertyVerify(minLen=2, maxLen=100)
    @ApiModelProperty(notes = "名称")
    private String name;

    @UsefulQueryField()
    @UsefulPropertyVerify(min=1, max=1000)
    @ApiModelProperty(notes = "排序")
    private Integer orderNo;


//useful_auto_generate_section_end


    @UsefulQueryField(type = QueryExpressTypeEnum.LIKE_RIGHT, columnName = "code")
    @UsefulPropertyVerify(minLen=1, maxLen=32)
    @ApiModelProperty(notes = "左编码")
    private String codeLike;

}
